package org.spring.test;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.web.session.InvalidSessionStrategy;

public class CustomInvalidSessionStrategy implements InvalidSessionStrategy {
	private final String destinationUrl;
	
	@Override
	public void onInvalidSessionDetected(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse) throws IOException, ServletException {
		System.err.println("en el Filtro de CustomInvalidSessionStrategy");
		
	}
	public CustomInvalidSessionStrategy(String url) {
		destinationUrl =url;
	}

}
